Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hosts deployed from director as url parameters in CubeLinks #2438

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

raviks789
Copy link
Collaborator

In case there were none of the hosts showed in a dimension for the cube module, then do not show the CubeLinks for that dimension.

fixes #2437

In case there were none of the hosts showed in a dimension for the cube module, then do not show the CubeLinks for that dimension.
@@ -19,6 +22,8 @@ public function prepareActionLinks(Cube $cube, View $view)
return;
}

$directorHosts = array_keys(IcingaObject::loadAllByType('Host', $this->directorDb()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good idea, loading all Hosts is not an option. While the user might select just a bunch of them, the DB can easily contain 100k+.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nilmerg: thanks for pointing this out, I overlooked it! @raviks789: please either use the deployment location in IcingaDB as a source of truth or ask the Director about the selected hosts only. If unsure how to address this, please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CubeLink doesnot work in case the hosts are not deployed from director.
3 participants